package com.weimall.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class BmHyjbExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BmHyjbExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBmIsNull() {
            addCriterion("BM is null");
            return (Criteria) this;
        }

        public Criteria andBmIsNotNull() {
            addCriterion("BM is not null");
            return (Criteria) this;
        }

        public Criteria andBmEqualTo(String value) {
            addCriterion("BM =", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmNotEqualTo(String value) {
            addCriterion("BM <>", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmGreaterThan(String value) {
            addCriterion("BM >", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmGreaterThanOrEqualTo(String value) {
            addCriterion("BM >=", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmLessThan(String value) {
            addCriterion("BM <", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmLessThanOrEqualTo(String value) {
            addCriterion("BM <=", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmLike(String value) {
            addCriterion("BM like", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmNotLike(String value) {
            addCriterion("BM not like", value, "bm");
            return (Criteria) this;
        }

        public Criteria andBmIn(List<String> values) {
            addCriterion("BM in", values, "bm");
            return (Criteria) this;
        }

        public Criteria andBmNotIn(List<String> values) {
            addCriterion("BM not in", values, "bm");
            return (Criteria) this;
        }

        public Criteria andBmBetween(String value1, String value2) {
            addCriterion("BM between", value1, value2, "bm");
            return (Criteria) this;
        }

        public Criteria andBmNotBetween(String value1, String value2) {
            addCriterion("BM not between", value1, value2, "bm");
            return (Criteria) this;
        }

        public Criteria andMcIsNull() {
            addCriterion("MC is null");
            return (Criteria) this;
        }

        public Criteria andMcIsNotNull() {
            addCriterion("MC is not null");
            return (Criteria) this;
        }

        public Criteria andMcEqualTo(String value) {
            addCriterion("MC =", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcNotEqualTo(String value) {
            addCriterion("MC <>", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcGreaterThan(String value) {
            addCriterion("MC >", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcGreaterThanOrEqualTo(String value) {
            addCriterion("MC >=", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcLessThan(String value) {
            addCriterion("MC <", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcLessThanOrEqualTo(String value) {
            addCriterion("MC <=", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcLike(String value) {
            addCriterion("MC like", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcNotLike(String value) {
            addCriterion("MC not like", value, "mc");
            return (Criteria) this;
        }

        public Criteria andMcIn(List<String> values) {
            addCriterion("MC in", values, "mc");
            return (Criteria) this;
        }

        public Criteria andMcNotIn(List<String> values) {
            addCriterion("MC not in", values, "mc");
            return (Criteria) this;
        }

        public Criteria andMcBetween(String value1, String value2) {
            addCriterion("MC between", value1, value2, "mc");
            return (Criteria) this;
        }

        public Criteria andMcNotBetween(String value1, String value2) {
            addCriterion("MC not between", value1, value2, "mc");
            return (Criteria) this;
        }

        public Criteria andSxIsNull() {
            addCriterion("SX is null");
            return (Criteria) this;
        }

        public Criteria andSxIsNotNull() {
            addCriterion("SX is not null");
            return (Criteria) this;
        }

        public Criteria andSxEqualTo(BigDecimal value) {
            addCriterion("SX =", value, "sx");
            return (Criteria) this;
        }

        public Criteria andSxNotEqualTo(BigDecimal value) {
            addCriterion("SX <>", value, "sx");
            return (Criteria) this;
        }

        public Criteria andSxGreaterThan(BigDecimal value) {
            addCriterion("SX >", value, "sx");
            return (Criteria) this;
        }

        public Criteria andSxGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("SX >=", value, "sx");
            return (Criteria) this;
        }

        public Criteria andSxLessThan(BigDecimal value) {
            addCriterion("SX <", value, "sx");
            return (Criteria) this;
        }

        public Criteria andSxLessThanOrEqualTo(BigDecimal value) {
            addCriterion("SX <=", value, "sx");
            return (Criteria) this;
        }

        public Criteria andSxIn(List<BigDecimal> values) {
            addCriterion("SX in", values, "sx");
            return (Criteria) this;
        }

        public Criteria andSxNotIn(List<BigDecimal> values) {
            addCriterion("SX not in", values, "sx");
            return (Criteria) this;
        }

        public Criteria andSxBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SX between", value1, value2, "sx");
            return (Criteria) this;
        }

        public Criteria andSxNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("SX not between", value1, value2, "sx");
            return (Criteria) this;
        }

        public Criteria andXxIsNull() {
            addCriterion("XX is null");
            return (Criteria) this;
        }

        public Criteria andXxIsNotNull() {
            addCriterion("XX is not null");
            return (Criteria) this;
        }

        public Criteria andXxEqualTo(BigDecimal value) {
            addCriterion("XX =", value, "xx");
            return (Criteria) this;
        }

        public Criteria andXxNotEqualTo(BigDecimal value) {
            addCriterion("XX <>", value, "xx");
            return (Criteria) this;
        }

        public Criteria andXxGreaterThan(BigDecimal value) {
            addCriterion("XX >", value, "xx");
            return (Criteria) this;
        }

        public Criteria andXxGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("XX >=", value, "xx");
            return (Criteria) this;
        }

        public Criteria andXxLessThan(BigDecimal value) {
            addCriterion("XX <", value, "xx");
            return (Criteria) this;
        }

        public Criteria andXxLessThanOrEqualTo(BigDecimal value) {
            addCriterion("XX <=", value, "xx");
            return (Criteria) this;
        }

        public Criteria andXxIn(List<BigDecimal> values) {
            addCriterion("XX in", values, "xx");
            return (Criteria) this;
        }

        public Criteria andXxNotIn(List<BigDecimal> values) {
            addCriterion("XX not in", values, "xx");
            return (Criteria) this;
        }

        public Criteria andXxBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("XX between", value1, value2, "xx");
            return (Criteria) this;
        }

        public Criteria andXxNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("XX not between", value1, value2, "xx");
            return (Criteria) this;
        }

        public Criteria andZkIsNull() {
            addCriterion("ZK is null");
            return (Criteria) this;
        }

        public Criteria andZkIsNotNull() {
            addCriterion("ZK is not null");
            return (Criteria) this;
        }

        public Criteria andZkEqualTo(BigDecimal value) {
            addCriterion("ZK =", value, "zk");
            return (Criteria) this;
        }

        public Criteria andZkNotEqualTo(BigDecimal value) {
            addCriterion("ZK <>", value, "zk");
            return (Criteria) this;
        }

        public Criteria andZkGreaterThan(BigDecimal value) {
            addCriterion("ZK >", value, "zk");
            return (Criteria) this;
        }

        public Criteria andZkGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ZK >=", value, "zk");
            return (Criteria) this;
        }

        public Criteria andZkLessThan(BigDecimal value) {
            addCriterion("ZK <", value, "zk");
            return (Criteria) this;
        }

        public Criteria andZkLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ZK <=", value, "zk");
            return (Criteria) this;
        }

        public Criteria andZkIn(List<BigDecimal> values) {
            addCriterion("ZK in", values, "zk");
            return (Criteria) this;
        }

        public Criteria andZkNotIn(List<BigDecimal> values) {
            addCriterion("ZK not in", values, "zk");
            return (Criteria) this;
        }

        public Criteria andZkBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ZK between", value1, value2, "zk");
            return (Criteria) this;
        }

        public Criteria andZkNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ZK not between", value1, value2, "zk");
            return (Criteria) this;
        }

        public Criteria andJgIsNull() {
            addCriterion("JG is null");
            return (Criteria) this;
        }

        public Criteria andJgIsNotNull() {
            addCriterion("JG is not null");
            return (Criteria) this;
        }

        public Criteria andJgEqualTo(String value) {
            addCriterion("JG =", value, "jg");
            return (Criteria) this;
        }

        public Criteria andJgNotEqualTo(String value) {
            addCriterion("JG <>", value, "jg");
            return (Criteria) this;
        }

        public Criteria andJgGreaterThan(String value) {
            addCriterion("JG >", value, "jg");
            return (Criteria) this;
        }

        public Criteria andJgGreaterThanOrEqualTo(String value) {
            addCriterion("JG >=", value, "jg");
            return (Criteria) this;
        }

        public Criteria andJgLessThan(String value) {
            addCriterion("JG <", value, "jg");
            return (Criteria) this;
        }

        public Criteria andJgLessThanOrEqualTo(String value) {
            addCriterion("JG <=", value, "jg");
            return (Criteria) this;
        }

        public Criteria andJgLike(String value) {
            addCriterion("JG like", value, "jg");
            return (Criteria) this;
        }

        public Criteria andJgNotLike(String value) {
            addCriterion("JG not like", value, "jg");
            return (Criteria) this;
        }

        public Criteria andJgIn(List<String> values) {
            addCriterion("JG in", values, "jg");
            return (Criteria) this;
        }

        public Criteria andJgNotIn(List<String> values) {
            addCriterion("JG not in", values, "jg");
            return (Criteria) this;
        }

        public Criteria andJgBetween(String value1, String value2) {
            addCriterion("JG between", value1, value2, "jg");
            return (Criteria) this;
        }

        public Criteria andJgNotBetween(String value1, String value2) {
            addCriterion("JG not between", value1, value2, "jg");
            return (Criteria) this;
        }

        public Criteria andQyFlagIsNull() {
            addCriterion("QY_FLAG is null");
            return (Criteria) this;
        }

        public Criteria andQyFlagIsNotNull() {
            addCriterion("QY_FLAG is not null");
            return (Criteria) this;
        }

        public Criteria andQyFlagEqualTo(String value) {
            addCriterion("QY_FLAG =", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagNotEqualTo(String value) {
            addCriterion("QY_FLAG <>", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagGreaterThan(String value) {
            addCriterion("QY_FLAG >", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagGreaterThanOrEqualTo(String value) {
            addCriterion("QY_FLAG >=", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagLessThan(String value) {
            addCriterion("QY_FLAG <", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagLessThanOrEqualTo(String value) {
            addCriterion("QY_FLAG <=", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagLike(String value) {
            addCriterion("QY_FLAG like", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagNotLike(String value) {
            addCriterion("QY_FLAG not like", value, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagIn(List<String> values) {
            addCriterion("QY_FLAG in", values, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagNotIn(List<String> values) {
            addCriterion("QY_FLAG not in", values, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagBetween(String value1, String value2) {
            addCriterion("QY_FLAG between", value1, value2, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andQyFlagNotBetween(String value1, String value2) {
            addCriterion("QY_FLAG not between", value1, value2, "qyFlag");
            return (Criteria) this;
        }

        public Criteria andSjFlagIsNull() {
            addCriterion("SJ_FLAG is null");
            return (Criteria) this;
        }

        public Criteria andSjFlagIsNotNull() {
            addCriterion("SJ_FLAG is not null");
            return (Criteria) this;
        }

        public Criteria andSjFlagEqualTo(String value) {
            addCriterion("SJ_FLAG =", value, "sjFlag");
            return (Criteria) this;
        }

        public Criteria andSjFlagNotEqualTo(String value) {
            addCriterion("SJ_FLAG <>", value, "sjFlag");
            return (Criteria) this;
        }

        public Criteria andSjFlagGreaterThan(String value) {
            addCriterion("SJ_FLAG >", value, "sjFlag");
            return (Criteria) this;
        }

        public Criteria andSjFlagGreaterThanOrEqualTo(String value) {
            addCriterion("SJ_FLAG >=", value, "sjFlag");
            return (Criteria) this;
        }

        public Criteria andSjFlagLessThan(String value) {
            addCriterion("SJ_FLAG <", value, "sjFlag");
            return (Criteria) this;
        }

        public Criteria andSjFlagLessThanOrEqualTo(String value) {
            addCriterion("SJ_FLAG <=", value, "sjFlag");
            return (Criteria) this;
        }

        public Criteria andSjFlagLike(String value) {
            addCriterion("SJ_FLAG like", value, "sjFlag");
            return (Criteria) this;
        }

        public Criteria andSjFlagNotLike(String value) {
            addCriterion("SJ_FLAG not like", value, "sjFlag");
            return (Criteria) this;
        }

        public Criteria andSjFlagIn(List<String> values) {
            addCriterion("SJ_FLAG in", values, "sjFlag");
            return (Criteria) this;
        }

        public Criteria andSjFlagNotIn(List<String> values) {
            addCriterion("SJ_FLAG not in", values, "sjFlag");
            return (Criteria) this;
        }

        public Criteria andSjFlagBetween(String value1, String value2) {
            addCriterion("SJ_FLAG between", value1, value2, "sjFlag");
            return (Criteria) this;
        }

        public Criteria andSjFlagNotBetween(String value1, String value2) {
            addCriterion("SJ_FLAG not between", value1, value2, "sjFlag");
            return (Criteria) this;
        }

        public Criteria andSbFlagIsNull() {
            addCriterion("SB_FLAG is null");
            return (Criteria) this;
        }

        public Criteria andSbFlagIsNotNull() {
            addCriterion("SB_FLAG is not null");
            return (Criteria) this;
        }

        public Criteria andSbFlagEqualTo(String value) {
            addCriterion("SB_FLAG =", value, "sbFlag");
            return (Criteria) this;
        }

        public Criteria andSbFlagNotEqualTo(String value) {
            addCriterion("SB_FLAG <>", value, "sbFlag");
            return (Criteria) this;
        }

        public Criteria andSbFlagGreaterThan(String value) {
            addCriterion("SB_FLAG >", value, "sbFlag");
            return (Criteria) this;
        }

        public Criteria andSbFlagGreaterThanOrEqualTo(String value) {
            addCriterion("SB_FLAG >=", value, "sbFlag");
            return (Criteria) this;
        }

        public Criteria andSbFlagLessThan(String value) {
            addCriterion("SB_FLAG <", value, "sbFlag");
            return (Criteria) this;
        }

        public Criteria andSbFlagLessThanOrEqualTo(String value) {
            addCriterion("SB_FLAG <=", value, "sbFlag");
            return (Criteria) this;
        }

        public Criteria andSbFlagLike(String value) {
            addCriterion("SB_FLAG like", value, "sbFlag");
            return (Criteria) this;
        }

        public Criteria andSbFlagNotLike(String value) {
            addCriterion("SB_FLAG not like", value, "sbFlag");
            return (Criteria) this;
        }

        public Criteria andSbFlagIn(List<String> values) {
            addCriterion("SB_FLAG in", values, "sbFlag");
            return (Criteria) this;
        }

        public Criteria andSbFlagNotIn(List<String> values) {
            addCriterion("SB_FLAG not in", values, "sbFlag");
            return (Criteria) this;
        }

        public Criteria andSbFlagBetween(String value1, String value2) {
            addCriterion("SB_FLAG between", value1, value2, "sbFlag");
            return (Criteria) this;
        }

        public Criteria andSbFlagNotBetween(String value1, String value2) {
            addCriterion("SB_FLAG not between", value1, value2, "sbFlag");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}